<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<% String which = "已退费处方"; %>
<%@ include file="user_header.jsp"%>
<!-- CONTENT -->
<section id="content">
	<div class="page dashboard-page">
		<!-- bradcome -->
		<section class="boxs">
			<div class="boxs-header">
				<h3 class="custom-font hb-blue">
					<strong>已支付 </strong>处方
				</h3>

			</div>
			<div class="boxs-body p-0">
				<table class="table table-hover">
					<thead>
						<tr>
							<th>#</th>
							<th>处方单号</th>
							<th>支付金额</th>
							<th>处方生成日期</th>
							<th>退费日期</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<%
							list = CashSystemFactory.getPayListDao(user).getPayLists(4);
							int cnt = 1;
							for(PayList pl : list){
								if(pl.getUserID() == user.getUserID()){
									%>

						<tr>
							<td><%=cnt ++ %></td>
							<td><%=String.format("PL%06d", pl.getPayListID()) %></td>
							<td><%=pl.getPayCash() %>¥</td>
							<td><%=pl.getPayDate() %></td>
							<td><%=CashSystemFactory.getPayBackDao().getPayBackByID(pl.getPayListID()).getPayDate() %></td>
							<td><a
								href="payListInfo?PayListID=<%=pl.getPayListID()%>&from=cancledPay"
								class="btn btn-raised btn-info">详情</a></td>
						</tr>

						<%
								}
							}
							%>
					</tbody>
				</table>

			</div>
		</section>
		<%@ include file="PayListInfoFooter.jsp"%>
	</div>
</section>
<%@ include file="/footer.jsp"%>